package com.bi.design.pojo;

public class BasePage {
    /**
     * 分页参数，当前页码
     */
    private Integer pageCurr = 1;
    /**
     * 分页参数，每页数量
     */
    private Integer pageSize = 10;

    public Integer getPageCurr() {
        return pageCurr;
    }

    public void setPageCurr(Integer pageCurr) {
        if (null == pageCurr || pageCurr < 0) {
            this.pageCurr = 1;
        } else {
            this.pageCurr = pageCurr;
        }
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        if (null == pageSize || pageSize < 1) {
            this.pageSize = 10;
        } else {
            this.pageSize = pageSize;
        }
    }

    @Override
    public String toString() {
        return "BasePage{" +
                "pageCurr=" + pageCurr +
                ", pageSize=" + pageSize +
                '}';
    }
}
